
#include <BViewer>
#include <BScript>
#include <BClass>

#include "ClassViewer.h"

bool Viewer_create(int argc, BVariant* argv)
{
	BClass* self = argv[0];
	BVariant* variant = self->variant("viewer");
	if (!variant)
		return false;
	variant->setValue(new BViewer());
	return true;
}
bool Viewer_show(int argc, BVariant* argv)
{
	BClass* self = argv[0];
	BVariant* variant = self->variant("viewer");
	if (!variant)
		return false;
	BViewer* viewer = variant->value();
	if (!viewer)
		return false;
	viewer->show();
	return true;
}
